home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2005 Utilities / CHIP Utilities 2005.7z / CHIP Utilities 2005.iso / CHIP Utilities / Zarzadzanie i bezpieczenstwo systemu / MBSA / MBSASetup-EN.msi / Data.Cab / copyreportlisttxt.xsl < prev    next >
Extensible Markup Language  |  2004-08-13  |  1KB  |  27 lines

  1. <?xml version="1.0"?> 
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.  
  4. <xsl:variable name="Assessment">
  5. <c score="1" text="Incomplete Scan"/>
  6. <c score="2" text="Severe Risk"/>
  7. <c score="3" text="Potential Risk"/>
  8. <c score="4" text="Security FYIs"/>
  9. <c score="5" text="Strong Security"/>
  10. </xsl:variable>
  11. <xsl:template match="/">
  12. <xsl:for-each select="Reports"><xsl:apply-templates><xsl:sort order="sortorder" select="sortfield"/></xsl:apply-templates>
  13. </xsl:for-each>
  14. </xsl:template>
  15. <xsl:template match="Report">
  16. <xsl:param name="score" select="@grade"/>
  17. <xsl:value-of select="@computer"/><xsl:text disable-output-escaping="yes"> </xsl:text><xsl:value-of select="@ip"/><xsl:text disable-output-escaping="yes"> </xsl:text><xsl:value-of select="document('')/*/xsl:variable[@name='Assessment']/c[@score=$score]/@text"/><xsl:text disable-output-escaping="yes"> </xsl:text><xsl:choose>
  18.               <xsl:when test="@ldate">
  19.                 <xsl:value-of select="@ldate"/>
  20.               </xsl:when>
  21.               <xsl:otherwise>
  22.                 <xsl:value-of select="@date"/>
  23.               </xsl:otherwise>
  24.              </xsl:choose>
  25. <xsl:text disable-output-escaping="yes"> </xsl:text></xsl:template>
  26. </xsl:stylesheet>
  27.